package com.xwj.dao;

import com.xwj.entity.RaMenuInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by thinkjoy on 2017/7/10.
 */
@Mapper
public interface RaMenuDao {
    List<RaMenuInfo> findAllMenu();

    List<RaMenuInfo> findItemMenu(int pid);

    int updateMenu(RaMenuInfo raMenuInfo);

    int deleteMenu(int id);

    List<RaMenuInfo> findMenuByRootId(int id);

    int addMenuByMenuInfo(RaMenuInfo raMenuInfo);
}
